package com.itheima.app;

import com.heima.Config.springConfig;
import com.heima.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class AppTrim {
    public static void main(String[] args) {
        ApplicationContext app =
                new AnnotationConfigApplicationContext(springConfig.class);
        UserService userService = app.getBean(UserService.class);
        userService.getUrl("    http://www.baidu.com  " , "   1234    ");
    }
}
